Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(flags): Update errors processor to index feature flag data #6713

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cmanallen
Copy link
Member

@cmanallen cmanallen commented Jan 2, 2025

Updates the errors processor to extract the flags context and set it on the features column. The will help enable search by feature flag.

DACI: https://www.notion.so/sentry/DACI-Search-for-Errors-by-Feature-Flag-1288b10e4b5d8014976dcbfbf335bc37?pvs=4#1288b10e4b5d805eb476d313eecae009
Sentry-kafka-schemas changes: getsentry/sentry-kafka-schemas#364
Depends on: #6723
Closes: https://github.com/getsentry/team-replay/issues/520

Copy link

codecov bot commented Jan 2, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
900 1 899 4
View the top 1 failed tests by shortest run time
tests.datasets.test_errors_processor.TestErrorsProcessor::test_errors_with_flags
Stack Traces | 0.026s run time
Traceback (most recent call last):
  File ".../tests/datasets/test_errors_processor.py", line 874, in test_errors_with_flags
    assert self.processor.process_message(payload, meta) == InsertBatch(
AssertionError: assert InsertBatch(rows=[{'contexts.key': ['geo.city', 'geo.country_code', 'geo.region', 'geo.subdivision', 'runtime.build', 'runtime.name', 'runtime.version', 'trace.span_id', 'trace.trace_id'], 'contexts.value': ['fake_city', 'XY', 'fake_region', 'fake_subdivision', '3.7.6', 'CPython', '3.7.6', 'deadbeef', 'e278d758256148ccbefc3583e89c23ca'], 'culprit': 'snuba.clickhouse.http in write', 'deleted': 0, 'dist': 'dist', 'environment': 'prod', 'event_id': 'dcb9d002-cac5-48c7-95d1-c9adbfc68040', 'exception_frames.abs_path': ['.../local/bin/snuba'], 'exception_frames.colno': [None], 'exception_frames.filename': ['snuba'], 'exception_frames.function': ['<module>'], 'exception_frames.in_app': [False], 'exception_frames.lineno': [11], 'exception_frames.module': ['__main__'], 'exception_frames.package': [None], 'exception_frames.stack_level': [0], 'exception_stacks.mechanism_handled': [0], 'exception_stacks.mechanism_type': ['excepthook'], 'exception_stacks.type': ['ClickHouseError'], 'exception_stacks.value': ['[171] DB::Exception: Block structure mismatch'], 'group_id': 100, 'http_method': 'POST', 'http_referer': 'tagstore.something', 'ip_address_v4': '127.0.0.1', 'level': 'error', 'location': 'snuba/clickhouse/http.py', 'message_timestamp': 1736357084, 'message': '', 'modules.name': ['cffi', 'ipython-genutils', 'isodate'], 'modules.version': ['1.13.2', '0.2.0', '0.6.0'], 'num_processing_errors': 3, 'offset': 2, 'partition': 2, 'platform': 'python', 'primary_hash': '04233d08-ac90-cf6f-c015-b1be5932e7e2', 'project_id': 2, 'received': 1736357079, 'release': '1.0.0', 'retention_days': 90, 'sdk_integrations': ['argv', 'atexit', 'dedupe', 'excepthook', 'logging', 'modules', 'stdlib', 'threading'], 'sdk_name': 'sentry.python', 'sdk_version': '0.0.0.0.1', 'span_id': 3735928559, 'tags.key': ['environment', 'handled', 'level', 'mechanism', 'runtime', 'runtime.name', 'sentry:dist', 'sentry:release', 'sentry:user', 'server_name'], 'tags.value': ['prod', 'no', 'error', 'excepthook', 'CPython 3.7.6', 'CPython', 'dist', '1.0.0', 'this_is_me', 'snuba'], 'features.key': [], 'features.value': [], 'timestamp': 1736357084, 'title': 'ClickHouseError: [171] DB::Exception: Block structure mismatch', 'trace_id': 'e278d758-2561-48cc-befc-3583e89c23ca', 'transaction_name': '', 'type': 'error', 'user_email': '[email protected]', 'user_id': 'still_me', 'user_name': 'me', 'user': 'this_is_me', 'version': '7'}], origin_timestamp=None, sentry_received_timestamp=None) == InsertBatch(rows=[{'project_id': 2, 'timestamp': 1736357084, 'event_id': 'dcb9d002-cac5-48c7-95d1-c9adbfc68040', 'platform': 'python', 'dist': 'dist', 'environment': 'prod', 'release': '1.0.0', 'ip_address_v4': '127.0.0.1', 'user': 'this_is_me', 'user_name': 'me', 'user_id': 'still_me', 'user_email': '[email protected]', 'sdk_name': 'sentry.python', 'sdk_version': '0.0.0.0.1', 'http_method': 'POST', 'http_referer': 'tagstore.something', 'trace_id': 'e278d758-2561-48cc-befc-3583e89c23ca', 'span_id': 3735928559, 'tags.key': ['environment', 'handled', 'level', 'mechanism', 'runtime', 'runtime.name', 'sentry:dist', 'sentry:release', 'sentry:user', 'server_name'], 'tags.value': ['prod', 'no', 'error', 'excepthook', 'CPython 3.7.6', 'CPython', 'dist', '1.0.0', 'this_is_me', 'snuba'], 'contexts.key': ['geo.city', 'geo.country_code', 'geo.region', 'geo.subdivision', 'runtime.build', 'runtime.name', 'runtime.version', 'trace.span_id', 'trace.trace_id'], 'contexts.value': ['fake_city', 'XY', 'fake_region', 'fake_subdivision', '3.7.6', 'CPython', '3.7.6', 'deadbeef', 'e278d758256148ccbefc3583e89c23ca'], 'partition': 2, 'offset': 2, 'message_timestamp': 1736357084, 'retention_days': 90, 'deleted': 0, 'group_id': 100, 'primary_hash': '04233d08-ac90-cf6f-c015-b1be5932e7e2', 'received': 1736357079, 'message': '', 'title': 'ClickHouseError: [171] DB::Exception: Block structure mismatch', 'culprit': 'snuba.clickhouse.http in write', 'level': 'error', 'location': 'snuba/clickhouse/http.py', 'version': '7', 'type': 'error', 'exception_stacks.type': ['ClickHouseError'], 'exception_stacks.value': ['[171] DB::Exception: Block structure mismatch'], 'exception_stacks.mechanism_type': ['excepthook'], 'exception_stacks.mechanism_handled': [0], 'exception_frames.abs_path': ['.../local/bin/snuba'], 'exception_frames.colno': [None], 'exception_frames.filename': ['snuba'], 'exception_frames.lineno': [11], 'exception_frames.in_app': [False], 'exception_frames.package': [None], 'exception_frames.module': ['__main__'], 'exception_frames.function': ['<module>'], 'exception_frames.stack_level': [0], 'sdk_integrations': ['argv', 'atexit', 'dedupe', 'excepthook', 'logging', 'modules', 'stdlib', 'threading'], 'modules.name': ['cffi', 'ipython-genutils', 'isodate'], 'modules.version': ['1.13.2', '0.2.0', '0.6.0'], 'transaction_name': '', 'num_processing_errors': 3, 'features.key': ['abc'], 'features.value': ['True']}], origin_timestamp=<ANY>, sentry_received_timestamp=None)
  
  Matching attributes:
  ['origin_timestamp', 'sentry_received_timestamp']
  Differing attributes:
  ['rows']
  
  Drill down into differing attribute rows:
    rows: [{'contexts.key': ['geo.city', 'geo.country_code', 'geo.region', 'geo.subdivision', 'runtime.build', 'runtime.name', 'runtime.version', 'trace.span_id', 'trace.trace_id'], 'contexts.value': ['fake_city', 'XY', 'fake_region', 'fake_subdivision', '3.7.6', 'CPython', '3.7.6', 'deadbeef', 'e278d758256148ccbefc3583e89c23ca'], 'culprit': 'snuba.clickhouse.http in write', 'deleted': 0, 'dist': 'dist', 'environment': 'prod', 'event_id': 'dcb9d002-cac5-48c7-95d1-c9adbfc68040', 'exception_frames.abs_path': ['.../local/bin/snuba'], 'exception_frames.colno': [None], 'exception_frames.filename': ['snuba'], 'exception_frames.function': ['<module>'], 'exception_frames.in_app': [False], 'exception_frames.lineno': [11], 'exception_frames.module': ['__main__'], 'exception_frames.package': [None], 'exception_frames.stack_level': [0], 'exception_stacks.mechanism_handled': [0], 'exception_stacks.mechanism_type': ['excepthook'], 'exception_stacks.type': ['ClickHouseError'], 'exception_stacks.value': ['[171] DB::Exception: Block structure mismatch'], 'group_id': 100, 'http_method': 'POST', 'http_referer': 'tagstore.something', 'ip_address_v4': '127.0.0.1', 'level': 'error', 'location': 'snuba/clickhouse/http.py', 'message_timestamp': 1736357084, 'message': '', 'modules.name': ['cffi', 'ipython-genutils', 'isodate'], 'modules.version': ['1.13.2', '0.2.0', '0.6.0'], 'num_processing_errors': 3, 'offset': 2, 'partition': 2, 'platform': 'python', 'primary_hash': '04233d08-ac90-cf6f-c015-b1be5932e7e2', 'project_id': 2, 'received': 1736357079, 'release': '1.0.0', 'retention_days': 90, 'sdk_integrations': ['argv', 'atexit', 'dedupe', 'excepthook', 'logging', 'modules', 'stdlib', 'threading'], 'sdk_name': 'sentry.python', 'sdk_version': '0.0.0.0.1', 'span_id': 3735928559, 'tags.key': ['environment', 'handled', 'level', 'mechanism', 'runtime', 'runtime.name', 'sentry:dist', 'sentry:release', 'sentry:user', 'server_name'], 'tags.value': ['prod', 'no', 'error', 'excepthook', 'CPython 3.7.6', 'CPython', 'dist', '1.0.0', 'this_is_me', 'snuba'], 'features.key': [], 'features.value': [], 'timestamp': 1736357084, 'title': 'ClickHouseError: [171] DB::Exception: Block structure mismatch', 'trace_id': 'e278d758-2561-48cc-befc-3583e89c23ca', 'transaction_name': '', 'type': 'error', 'user_email': '[email protected]', 'user_id': 'still_me', 'user_name': 'me', 'user': 'this_is_me', 'version': '7'}] != [{'project_id': 2, 'timestamp': 1736357084, 'event_id': 'dcb9d002-cac5-48c7-95d1-c9adbfc68040', 'platform': 'python', 'dist': 'dist', 'environment': 'prod', 'release': '1.0.0', 'ip_address_v4': '127.0.0.1', 'user': 'this_is_me', 'user_name': 'me', 'user_id': 'still_me', 'user_email': '[email protected]', 'sdk_name': 'sentry.python', 'sdk_version': '0.0.0.0.1', 'http_method': 'POST', 'http_referer': 'tagstore.something', 'trace_id': 'e278d758-2561-48cc-befc-3583e89c23ca', 'span_id': 3735928559, 'tags.key': ['environment', 'handled', 'level', 'mechanism', 'runtime', 'runtime.name', 'sentry:dist', 'sentry:release', 'sentry:user', 'server_name'], 'tags.value': ['prod', 'no', 'error', 'excepthook', 'CPython 3.7.6', 'CPython', 'dist', '1.0.0', 'this_is_me', 'snuba'], 'contexts.key': ['geo.city', 'geo.country_code', 'geo.region', 'geo.subdivision', 'runtime.build', 'runtime.name', 'runtime.version', 'trace.span_id', 'trace.trace_id'], 'contexts.value': ['fake_city', 'XY', 'fake_region', 'fake_subdivision', '3.7.6', 'CPython', '3.7.6', 'deadbeef', 'e278d758256148ccbefc3583e89c23ca'], 'partition': 2, 'offset': 2, 'message_timestamp': 1736357084, 'retention_days': 90, 'deleted': 0, 'group_id': 100, 'primary_hash': '04233d08-ac90-cf6f-c015-b1be5932e7e2', 'received': 1736357079, 'message': '', 'title': 'ClickHouseError: [171] DB::Exception: Block structure mismatch', 'culprit': 'snuba.clickhouse.http in write', 'level': 'error', 'location': 'snuba/clickhouse/http.py', 'version': '7', 'type': 'error', 'exception_stacks.type': ['ClickHouseError'], 'exception_stacks.value': ['[171] DB::Exception: Block structure mismatch'], 'exception_stacks.mechanism_type': ['excepthook'], 'exception_stacks.mechanism_handled': [0], 'exception_frames.abs_path': ['.../local/bin/snuba'], 'exception_frames.colno': [None], 'exception_frames.filename': ['snuba'], 'exception_frames.lineno': [11], 'exception_frames.in_app': [False], 'exception_frames.package': [None], 'exception_frames.module': ['__main__'], 'exception_frames.function': ['<module>'], 'exception_frames.stack_level': [0], 'sdk_integrations': ['argv', 'atexit', 'dedupe', 'excepthook', 'logging', 'modules', 'stdlib', 'threading'], 'modules.name': ['cffi', 'ipython-genutils', 'isodate'], 'modules.version': ['1.13.2', '0.2.0', '0.6.0'], 'transaction_name': '', 'num_processing_errors': 3, 'features.key': ['abc'], 'features.value': ['True']}]
    At index 0 diff: {'contexts.key': ['geo.city', 'geo.country_code', 'geo.region', 'geo.subdivision', 'runtime.build', 'runtime.name', 'runtime.version', 'trace.span_id', 'trace.trace_id'], 'contexts.value': ['fake_city', 'XY', 'fake_region', 'fake_subdivision', '3.7.6', 'CPython', '3.7.6', 'deadbeef', 'e278d758256148ccbefc3583e89c23ca'], 'culprit': 'snuba.clickhouse.http in write', 'deleted': 0, 'dist': 'dist', 'environment': 'prod', 'event_id': 'dcb9d002-cac5-48c7-95d1-c9adbfc68040', 'exception_frames.abs_path': ['.../local/bin/snuba'], 'exception_frames.colno': [None], 'exception_frames.filename': ['snuba'], 'exception_frames.function': ['<module>'], 'exception_frames.in_app': [False], 'exception_frames.lineno': [11], 'exception_frames.module': ['__main__'], 'exception_frames.package': [None], 'exception_frames.stack_level': [0], 'exception_stacks.mechanism_handled': [0], 'exception_stacks.mechanism_type': ['excepthook'], 'exception_stacks.type': ['ClickHouseError'], 'exception_stacks.value': ['[171] DB::Exception: Block structure mismatch'], 'group_id': 100, 'http_method': 'POST', 'http_referer': 'tagstore.something', 'ip_address_v4': '127.0.0.1', 'level': 'error', 'location': 'snuba/clickhouse/http.py', 'message_timestamp': 1736357084, 'message': '', 'modules.name': ['cffi', 'ipython-genutils', 'isodate'], 'modules.version': ['1.13.2', '0.2.0', '0.6.0'], 'num_processing_errors': 3, 'offset': 2, 'partition': 2, 'platform': 'python', 'primary_hash': '04233d08-ac90-cf6f-c015-b1be5932e7e2', 'project_id': 2, 'received': 1736357079, 'release': '1.0.0', 'retention_days': 90, 'sdk_integrations': ['argv', 'atexit', 'dedupe', 'excepthook', 'logging', 'modules', 'stdlib', 'threading'], 'sdk_name': 'sentry.python', 'sdk_version': '0.0.0.0.1', 'span_id': 3735928559, 'tags.key': ['environment', 'handled', 'level', 'mechanism', 'runtime', 'runtime.name', 'sentry:dist', 'sentry:release', 'sentry:user', 'server_name'], 'tags.value': ['prod', 'no', 'error', 'excepthook', 'CPython 3.7.6', 'CPython', 'dist', '1.0.0', 'this_is_me', 'snuba'], 'features.key': [], 'features.value': [], 'timestamp': 1736357084, 'title': 'ClickHouseError: [171] DB::Exception: Block structure mismatch', 'trace_id': 'e278d758-2561-48cc-befc-3583e89c23ca', 'transaction_name': '', 'type': 'error', 'user_email': 'me@myself.org', 'user_id': 'still_me', 'user_name': 'me', 'user': 'this_is_me', 'version': '7'} != {'project_id': 2, 'timestamp': 1736357084, 'event_id': 'dcb9d002-cac5-48c7-95d1-c9adbfc68040', 'platform': 'python', 'dist': 'dist', 'environment': 'prod', 'release': '1.0.0', 'ip_address_v4': '127.0.0.1', 'user': 'this_is_me', 'user_name': 'me', 'user_id': 'still_me', 'user_email': 'me@myself.org', 'sdk_name': 'sentry.python', 'sdk_version': '0.0.0.0.1', 'http_method': 'POST', 'http_referer': 'tagstore.something', 'trace_id': 'e278d758-2561-48cc-befc-3583e89c23ca', 'span_id': 3735928559, 'tags.key': ['environment', 'handled', 'level', 'mechanism', 'runtime', 'runtime.name', 'sentry:dist', 'sentry:release', 'sentry:user', 'server_name'], 'tags.value': ['prod', 'no', 'error', 'excepthook', 'CPython 3.7.6', 'CPython', 'dist', '1.0.0', 'this_is_me', 'snuba'], 'contexts.key': ['geo.city', 'geo.country_code', 'geo.region', 'geo.subdivision', 'runtime.build', 'runtime.name', 'runtime.version', 'trace.span_id', 'trace.trace_id'], 'contexts.value': ['fake_city', 'XY', 'fake_region', 'fake_subdivision', '3.7.6', 'CPython', '3.7.6', 'deadbeef', 'e278d758256148ccbefc3583e89c23ca'], 'partition': 2, 'offset': 2, 'message_timestamp': 1736357084, 'retention_days': 90, 'deleted': 0, 'group_id': 100, 'primary_hash': '04233d08-ac90-cf6f-c015-b1be5932e7e2', 'received': 1736357079, 'message': '', 'title': 'ClickHouseError: [171] DB::Exception: Block structure mismatch', 'culprit': 'snuba.clickhouse.http in write', 'level': 'error', 'location': 'snuba/clickhouse/http.py', 'version': '7', 'type': 'error', 'exception_stacks.type': ['ClickHouseError'], 'exception_stacks.value': ['[171] DB::Exception: Block structure mismatch'], 'exception_stacks.mechanism_type': ['excepthook'], 'exception_stacks.mechanism_handled': [0], 'exception_frames.abs_path': ['.../local/bin/snuba'], 'exception_frames.colno': [None], 'exception_frames.filename': ['snuba'], 'exception_frames.lineno': [11], 'exception_frames.in_app': [False], 'exception_frames.package': [None], 'exception_frames.module': ['__main__'], 'exception_frames.function': ['<module>'], 'exception_frames.stack_level': [0], 'sdk_integrations': ['argv', 'atexit', 'dedupe', 'excepthook', 'logging', 'modules', 'stdlib', 'threading'], 'modules.name': ['cffi', 'ipython-genutils', 'isodate'], 'modules.version': ['1.13.2', '0.2.0', '0.6.0'], 'transaction_name': '', 'num_processing_errors': 3, 'features.key': ['abc'], 'features.value': ['True']}
    Full diff:
      [
       {'contexts.key': ['geo.city',
                         'geo.country_code',
                         'geo.region',
                         'geo.subdivision',
                         'runtime.build',
                         'runtime.name',
                         'runtime.version',
                         'trace.span_id',
                         'trace.trace_id'],
        'contexts.value': ['fake_city',
                           'XY',
                           'fake_region',
                           'fake_subdivision',
                           '3.7.6',
                           'CPython',
                           '3.7.6',
                           'deadbeef',
                           'e278d758256148ccbefc3583e89c23ca'],
        'culprit': 'snuba.clickhouse.http in write',
        'deleted': 0,
        'dist': 'dist',
        'environment': 'prod',
        'event_id': 'dcb9d002-cac5-48c7-95d1-c9adbfc68040',
        'exception_frames.abs_path': ['.../local/bin/snuba'],
        'exception_frames.colno': [None],
        'exception_frames.filename': ['snuba'],
        'exception_frames.function': ['<module>'],
        'exception_frames.in_app': [False],
        'exception_frames.lineno': [11],
        'exception_frames.module': ['__main__'],
        'exception_frames.package': [None],
        'exception_frames.stack_level': [0],
        'exception_stacks.mechanism_handled': [0],
        'exception_stacks.mechanism_type': ['excepthook'],
        'exception_stacks.type': ['ClickHouseError'],
        'exception_stacks.value': ['[171] DB::Exception: Block structure mismatch'],
    -   'features.key': ['abc'],
    ?                    -----
    +   'features.key': [],
    -   'features.value': ['True'],
    ?                      ------
    +   'features.value': [],
        'group_id': 100,
        'http_method': 'POST',
        'http_referer': 'tagstore.something',
        'ip_address_v4': '127.0.0.1',
        'level': 'error',
        'location': 'snuba/clickhouse/http.py',
        'message': '',
        'message_timestamp': 1736357084,
        'modules.name': ['cffi', 'ipython-genutils', 'isodate'],
        'modules.version': ['1.13.2', '0.2.0', '0.6.0'],
        'num_processing_errors': 3,
        'offset': 2,
        'partition': 2,
        'platform': 'python',
        'primary_hash': '04233d08-ac90-cf6f-c015-b1be5932e7e2',
        'project_id': 2,
        'received': 1736357079,
        'release': '1.0.0',
        'retention_days': 90,
        'sdk_integrations': ['argv',
                             'atexit',
                             'dedupe',
                             'excepthook',
                             'logging',
                             'modules',
                             'stdlib',
                             'threading'],
        'sdk_name': 'sentry.python',
        'sdk_version': '0.0.0.0.1',
        'span_id': 3735928559,
        'tags.key': ['environment',
                     'handled',
                     'level',
                     'mechanism',
                     'runtime',
                     'runtime.name',
                     'sentry:dist',
                     'sentry:release',
                     'sentry:user',
                     'server_name'],
        'tags.value': ['prod',
                       'no',
                       'error',
                       'excepthook',
                       'CPython 3.7.6',
                       'CPython',
                       'dist',
                       '1.0.0',
                       'this_is_me',
                       'snuba'],
        'timestamp': 1736357084,
        'title': 'ClickHouseError: [171] DB::Exception: Block structure mismatch',
        'trace_id': 'e278d758-2561-48cc-befc-3583e89c23ca',
        'transaction_name': '',
        'type': 'error',
        'user': 'this_is_me',
        'user_email': '[email protected]',
        'user_id': 'still_me',
        'user_name': 'me',
        'version': '7'},
      ]
  Full diff:
  - InsertBatch(rows=[{'project_id': 2, 'timestamp': 1736357084, 'event_id': 'dcb9d002-cac5-48c7-95d1-c9adbfc68040', 'platform': 'python', 'dist': 'dist', 'environment': 'prod', 'release': '1.0.0', 'ip_address_v4': '127.0.0.1', 'user': 'this_is_me', 'user_name': 'me', 'user_id': 'still_me', 'user_email': '[email protected]', 'sdk_name': 'sentry.python', 'sdk_version': '0.0.0.0.1', 'http_method': 'POST', 'http_referer': 'tagstore.something', 'trace_id': 'e278d758-2561-48cc-befc-3583e89c23ca', 'span_id': 3735928559, 'tags.key': ['environment', 'handled', 'level', 'mechanism', 'runtime', 'runtime.name', 'sentry:dist', 'sentry:release', 'sentry:user', 'server_name'], 'tags.value': ['prod', 'no', 'error', 'excepthook', 'CPython 3.7.6', 'CPython', 'dist', '1.0.0', 'this_is_me', 'snuba'], 'contexts.key': ['geo.city', 'geo.country_code', 'geo.region', 'geo.subdivision', 'runtime.build', 'runtime.name', 'runtime.version', 'trace.span_id', 'trace.trace_id'], 'contexts.value': ['fake_city', 'XY', 'fake_region', 'fake_subdivision', '3.7.6', 'CPython', '3.7.6', 'deadbeef', 'e278d758256148ccbefc3583e89c23ca'], 'partition': 2, 'offset': 2, 'message_timestamp': 1736357084, 'retention_days': 90, 'deleted': 0, 'group_id': 100, 'primary_hash': '04233d08-ac90-cf6f-c015-b1be5932e7e2', 'received': 1736357079, 'message': '', 'title': 'ClickHouseError: [171] DB::Exception: Block structure mismatch', 'culprit': 'snuba.clickhouse.http in write', 'level': 'error', 'location': 'snuba/clickhouse/http.py', 'version': '7', 'type': 'error', 'exception_stacks.type': ['ClickHouseError'], 'exception_stacks.value': ['[171] DB::Exception: Block structure mismatch'], 'exception_stacks.mechanism_type': ['excepthook'], 'exception_stacks.mechanism_handled': [0], 'exception_frames.abs_path': ['.../local/bin/snuba'], 'exception_frames.colno': [None], 'exception_frames.filename': ['snuba'], 'exception_frames.lineno': [11], 'exception_frames.in_app': [False], 'exception_frames.package': [None], 'exception_frames.module': ['__main__'], 'exception_frames.function': ['<module>'], 'exception_frames.stack_level': [0], 'sdk_integrations': ['argv', 'atexit', 'dedupe', 'excepthook', 'logging', 'modules', 'stdlib', 'threading'], 'modules.name': ['cffi', 'ipython-genutils', 'isodate'], 'modules.version': ['1.13.2', '0.2.0', '0.6.0'], 'transaction_name': '', 'num_processing_errors': 3, 'features.key': ['abc'], 'features.value': ['True']}], origin_timestamp=<ANY>, sentry_received_timestamp=None)
  + InsertBatch(rows=[{'contexts.key': ['geo.city', 'geo.country_code', 'geo.region', 'geo.subdivision', 'runtime.build', 'runtime.name', 'runtime.version', 'trace.span_id', 'trace.trace_id'], 'contexts.value': ['fake_city', 'XY', 'fake_region', 'fake_subdivision', '3.7.6', 'CPython', '3.7.6', 'deadbeef', 'e278d758256148ccbefc3583e89c23ca'], 'culprit': 'snuba.clickhouse.http in write', 'deleted': 0, 'dist': 'dist', 'environment': 'prod', 'event_id': 'dcb9d002-cac5-48c7-95d1-c9adbfc68040', 'exception_frames.abs_path': ['.../local/bin/snuba'], 'exception_frames.colno': [None], 'exception_frames.filename': ['snuba'], 'exception_frames.function': ['<module>'], 'exception_frames.in_app': [False], 'exception_frames.lineno': [11], 'exception_frames.module': ['__main__'], 'exception_frames.package': [None], 'exception_frames.stack_level': [0], 'exception_stacks.mechanism_handled': [0], 'exception_stacks.mechanism_type': ['excepthook'], 'exception_stacks.type': ['ClickHouseError'], 'exception_stacks.value': ['[171] DB::Exception: Block structure mismatch'], 'group_id': 100, 'http_method': 'POST', 'http_referer': 'tagstore.something', 'ip_address_v4': '127.0.0.1', 'level': 'error', 'location': 'snuba/clickhouse/http.py', 'message_timestamp': 1736357084, 'message': '', 'modules.name': ['cffi', 'ipython-genutils', 'isodate'], 'modules.version': ['1.13.2', '0.2.0', '0.6.0'], 'num_processing_errors': 3, 'offset': 2, 'partition': 2, 'platform': 'python', 'primary_hash': '04233d08-ac90-cf6f-c015-b1be5932e7e2', 'project_id': 2, 'received': 1736357079, 'release': '1.0.0', 'retention_days': 90, 'sdk_integrations': ['argv', 'atexit', 'dedupe', 'excepthook', 'logging', 'modules', 'stdlib', 'threading'], 'sdk_name': 'sentry.python', 'sdk_version': '0.0.0.0.1', 'span_id': 3735928559, 'tags.key': ['environment', 'handled', 'level', 'mechanism', 'runtime', 'runtime.name', 'sentry:dist', 'sentry:release', 'sentry:user', 'server_name'], 'tags.value': ['prod', 'no', 'error', 'excepthook', 'CPython 3.7.6', 'CPython', 'dist', '1.0.0', 'this_is_me', 'snuba'], 'features.key': [], 'features.value': [], 'timestamp': 1736357084, 'title': 'ClickHouseError: [171] DB::Exception: Block structure mismatch', 'trace_id': 'e278d758-2561-48cc-befc-3583e89c23ca', 'transaction_name': '', 'type': 'error', 'user_email': '[email protected]', 'user_id': 'still_me', 'user_name': 'me', 'user': 'this_is_me', 'version': '7'}], origin_timestamp=None, sentry_received_timestamp=None)

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@cmanallen cmanallen marked this pull request as ready for review January 8, 2025 17:01
@cmanallen cmanallen requested a review from a team as a code owner January 8, 2025 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant